<?php
require $this->__RAD__ . 'include/head.php';
?>
<body>

<?php
require $this->__RAD__ . 'include/header.php';
?>

<div class="join brand" style="background:url(<?= $this->__STATIC__ ?>/images/bg03.jpg) no-repeat center center /cover;">
    <div id="item1" class="join-con06">
        <div class="tit">加盟优势</div>
        <div class="bg-box" style="background:url(<?= $this->__STATIC__ ?>/images/bg07.jpg) no-repeat center center/cover;">
            <div class="wrapper">
                <?php
                if ($this->aryLarge1) :
                    ?>
                    <h2><?= $this->aryLarge1[0]->ad_title ?></h2>
                    <center><img src="<?= $this->__CDN__ ?>pics/l/<?= $this->aryLarge1[0]->ad_img ?>"></center>
                    <?php
                endif;
                ?>
            </div>
        </div>
    </div>
    <div id="item2" class="join-con07">
        <div class="wrapper">
            <div class="tit">经营案例</div>
            <ul>
                <?php
                foreach ($this->currentListRs1 as $val) :
                    $synopsis = explode('#@#', $val->synopsis);
                    $count = count($synopsis);
                    ?>
                    <li>
                        <h3><?= $val->title ?></h3>
                        <p>
                            <?php
                            if ($synopsis) :
                                $_i = 1;
                                foreach ($synopsis as $_val) :
                                    if ($_i <= $count) :
                                        ?>
                                        <?= $_val ?> <?= $_i == $count ? '' : '<br>' ?>
                                        <?php
                                    endif;
                                    $_i++;
                                endforeach;
                            endif;
                            ?>
                        </p>
                        <img src="<?= $this->__CDN__ ?>pics/l/<?= $val->cover ?>">
                    </li>
                    <?php
                endforeach;
                ?>
            </ul>
        </div>
    </div>
    <div id="item3" class="join-con08">
        <div class="wrapper">
            <div class="tit">加盟流程</div>
            <?php
            if ($this->aryLarge2) :
                ?>
                <h2><?= $this->aryLarge2[0]->ad_title ?></h2>
                <p><?= $this->aryLarge2[0]->ad_synopsis ?></p>
                <center><img src="<?= $this->__CDN__ ?>pics/l/<?= $this->aryLarge2[0]->ad_img ?>"></center>
                <?php
            endif;
            ?>
        </div>
    </div>
    <div id="item4" class="join-con09">
        <div class="wrapper">
            <div class="tit">利润分析</div>
            <?php
            if ($this->aryLarge3) :
                ?>
                <h2><?= $this->aryLarge3[0]->ad_title ?></h2>
                <p><?= $this->aryLarge3[0]->ad_synopsis ?></p>
                <center><img src="<?= $this->__CDN__ ?>pics/l/<?= $this->aryLarge3[0]->ad_img ?>"></center>
                <?php
            endif;
            ?>
        </div>
    </div>
    <div id="item5" class="join-con10">
        <div class="wrapper">
            <div class="tit">加盟学堂</div>
            <ul class="clearfix">
                <li>
                    <div class="box">
                        <h3>创业篇</h3>
                        <p>
                            1.对加盟的项目有兴趣才有动力和热情，才有克服困难的勇气和毅力。<br>
                            2.加入连锁体系是两人三足，以团结的态度共同创造事业，统一管理、相互配合。<br>
                            3.创业要找最合适的人，选择认同的理念和文化，和志同道合的连锁体系成为创业伙伴，才能发挥最大价值的让1+1远远大于2。<br>
                            4.连锁体系就如同一个桥梁，通过这个桥梁认识拥有共同价值观的人，彼此鼓励，支持，见证，一路同行，是创业路上最宝贵的财富。<br>
                            5.不忘初心，方得始终。铭记加盟初衷，坚定不移地朝着最初的目标前进。
                        </p>
                    </div>
                </li>
                <li style="background:url(<?= $this->__STATIC__ ?>/images/icon31.png) no-repeat right 60px bottom 20px;">
                    <div class="box">
                        <h3><font color="#ff0000">财富篇</font></h3>
                        <p>
                            1.把加盟当成投资，用经营者的角度思考。<br>
                            2.赚钱是结果而非目的，追求卓越，成功和财富自然跟随而来。<br>
                            3.全心投入不一定赚钱，不投入一定不会赚钱。
                        </p>
                    </div>
                </li>
                <li style="background:url(<?= $this->__STATIC__ ?>/images/icon30.png) no-repeat right 60px bottom 20px;">
                    <div class="box">
                        <h3><font color="#00e130">努力篇</font></h3>
                        <p>
                            1.荷花虽好也要绿叶扶持，连锁体系就如同绿叶，荷花能开得多美则全看你如何经营。<br>
                            2.同样的连锁体系下，创业成功或失败往往在于经营理念、遵守纪律、管理方法与积极努力。<br>
                            3.无经验不可怕，可怕的是没有一颗积极学习的心。
                        </p>
                    </div>
                </li>
                <li style="background:url(<?= $this->__STATIC__ ?>/images/icon32.png) no-repeat right 60px bottom 20px;">
                    <div class="box">
                        <h3><font color="#ffa800">品德篇</font></h3>
                        <p>
                            1.君子爱财取之有道，不做黑心的产品、不赚黑心钱。<br>
                            2.要能对自己和别人负责，遵守国家法令、加盟合同、连锁体系的文化与规章制度；全心培训员工、服务顾客，全力管理门店、控制食品卫生。
                        </p>
                    </div>
                </li>
            </ul>
        </div>
    </div>
    <div id="item6" class="join-con05">
        <div class="wrapper">
            <div class="tit">
                加盟问答
            </div>
            <?php
            if ($this->aryLarge4) :
                echo '<h2>' . $this->aryLarge4[0]->title . '</h2><p align="center" class="p">';
                $synopsis = explode('#@#', $this->aryLarge4[0]->ad_synopsis);
                if ($synopsis) :
                    foreach ($synopsis as $val) :
                        ?>
                        <?= $val . '<br>' ?>
                        <?php
                    endforeach;
                endif;
                echo '</p>';
            endif;
            ?>
            <div class="bor">
                <div class="scroll-div">
                    <ul>
                        <?php
                        if ($this->currentListRs) :
                            foreach ($this->currentListRs as $val) :
                                $synopsis = explode('#@#', $val->synopsis);
                                $count = count($synopsis);
                                ?>
                                <li>
                                    <div class="title">
                                        <h3><?= $val->title ?></h3>
                                    </div>
                                    <div class="con">
                                        <p>
                                            <?php
                                            if ($synopsis) :
                                                $_i = 1;
                                                foreach ($synopsis as $_val) :
                                                    if ($_i <= $count) :
                                                        ?>
                                                        <?= $count != 1 ? $_i . '. ' . $_val : $_val ?> <?= $_i == $count ? '' : '<br>' ?>
                                                        <?php
                                                    endif;
                                                    $_i++;
                                                endforeach;
                                            endif;
                                            ?>
                                        </p>
                                    </div>
                                </li>
                                <?php
                            endforeach;
                        endif;
                        ?>
                    </ul>

                </div>
            </div>
        </div>
    </div>
</div>
<div id="fp-nav" class="blue">
    <ul>
        <li><a href="#item1" class="active"><span></span></a></li>
        <li><a href="#item2"><span></span></a></li>
        <li><a href="#item3"><span></span></a></li>
        <li><a href="#item4"><span></span></a></li>
        <li><a href="#item5"><span></span></a></li>
        <li><a href="#item6"><span></span></a></li>
    </ul>
</div>
<?php
require $this->__RAD__ . 'include/footer.php';
?>
<?php
require $this->__RAD__ . 'include/right.php';
?>

</body>
</html>
<script type="text/javascript" src="<?= $this->__STATIC__ ?>js/common.js"></script>
<script>
    $(function () {
        //加盟优势
        $('.join-con01-box .a-box a').click(function () {
            var _index=$(this).index();
            $(this).addClass('cur').siblings().removeClass('cur');
            $('.p-box p').eq(_index+1).show().siblings().hide();
        });
        //qa
        $('.join-con05 .title h3').click(function () {
            $(this).parents('li').toggleClass('cur').siblings().removeClass('cur')
        });
        $('.join-con05 li:nth-child(1) .title h3').trigger('click');



        $(window).scroll(function () {
            var items = $(".brand").children("div");
            var menu = $("#fp-nav");
            var top = $(document).scrollTop();
            var currentId = ""; //滚动条现在所在位置的item id
            items.each(function () {
                var m = $(this);
                //注意：m.offset().top代表每一个item的顶部位置
                if (top > m.offset().top - 300) {
                    currentId = "#" + m.attr("id");
                } else {
                    return false;
                }
            });
            //给相应楼层设置
            var currentLink = menu.find(".cur");
            if (currentId && currentLink.attr("href") != currentId) {
                menu.find("[href=" + currentId + "]").addClass("active").parents("li").siblings("li").find("a").removeClass('active');
            }
        });
        //锚点跳转滑动效果
        $('a[href*=#],area[href*=#]').click(function() {
            console.log(this.pathname);
            if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
                var $target = $(this.hash);
                $target = $target.length && $target || $('[name=' + this.hash.slice(1) + ']');
                if ($target.length) {
                    var targetOffset = $target.offset().top;
                    $('html,body').animate({
                        scrollTop: targetOffset
                    },500);
                    return false;
                }
            }
        });
    })
</script>